#include <iostream>
#include <iomanip>

int main(){
	std::cout << "y=-2.4*x*x+5*x-3" << "\n\n";
	//************************************************************
/*	double x=0;
	double y=0;
	for (int i=1;i<=10;++i){
		std::cout << "x" << i << "=";
		std::cin >> x;
		
		y=-2.4*x*x+5*x-3;
		std::cout << "y" << i << "=";
		std::cout << y << "\n";
		std::cout << "\n"; */
	//************************************************************
	const int Msize = 10;
	int m[Msize];
	for (int i=0;i<Msize;++i){
		std::cout << std::setw(2) << "x" << i+1 << " = ";
		std::cin >> m[i];
	}
	std::cout << "\n\n";
	double y=0;
	for(int i=0;i<Msize;++i){
		y=-2.4*m[i]*m[i]+5*m[i]-3;
		std::cout << std::setw(2) << "y" << i+1 << " = " << y << "\n";
	}
	return 0;
}